<script setup>
import { getCurrentInstance,ref, inject, onMounted, reactive, toRefs, computed, watch } from 'vue';
import heComponents from '@/components/header.vue'
import { useRouter } from 'vue-router';

// let { $axios } = getCurrentInstance().proxy
// console.log($axios);

const count = ref(0)
let countClick = () => {
  count.value ++
}

let getChildren = (v) => {
  console.log(v);
}

onMounted(() => {
  console.log("onMounted");
})
</script>

<template>
  <div class="home">
    <van-button type="primary">主要按钮</van-button>
    <!-- <input type="text" v-model="list.name"> -->
    <!-- {{ list.name }} -->
    <heComponents title="你好这是测试" @fas="getChildren"></heComponents>
    <h1 @click="countClick">首页 {{ count }}</h1>
  </div>
</template>
